import service from '@/utils/request'
// @Tags Certificate_management
// @Summary 创建证书管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Certificate_management true "创建证书管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"创建成功"}"
// @Router /certificate_management/createCertificate_management [post]
export const createCertificate_management = (data) => {
  return service({
    url: '/certificate_management/createCertificate_management',
    method: 'post',
    data
  })
}

// @Tags Certificate_management
// @Summary 删除证书管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Certificate_management true "删除证书管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /certificate_management/deleteCertificate_management [delete]
export const deleteCertificate_management = (params) => {
  return service({
    url: '/certificate_management/deleteCertificate_management',
    method: 'delete',
    params
  })
}

// @Tags Certificate_management
// @Summary 批量删除证书管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除证书管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /certificate_management/deleteCertificate_management [delete]
export const deleteCertificate_managementByIds = (params) => {
  return service({
    url: '/certificate_management/deleteCertificate_managementByIds',
    method: 'delete',
    params
  })
}

// @Tags Certificate_management
// @Summary 更新证书管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data body model.Certificate_management true "更新证书管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /certificate_management/updateCertificate_management [put]
export const updateCertificate_management = (data) => {
  return service({
    url: '/certificate_management/updateCertificate_management',
    method: 'put',
    data
  })
}

// @Tags Certificate_management
// @Summary 用id查询证书管理
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query model.Certificate_management true "用id查询证书管理"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /certificate_management/findCertificate_management [get]
export const findCertificate_management = (params) => {
  return service({
    url: '/certificate_management/findCertificate_management',
    method: 'get',
    params
  })
}

// @Tags Certificate_management
// @Summary 分页获取证书管理列表
// @Security ApiKeyAuth
// @Accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取证书管理列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /certificate_management/getCertificate_managementList [get]
export const getCertificate_managementList = (params) => {
  return service({
    url: '/certificate_management/getCertificate_managementList',
    method: 'get',
    params
  })
}

// @Tags Certificate_management
// @Summary 不需要鉴权的证书管理接口
// @Accept application/json
// @Produce application/json
// @Param data query systemReq.Certificate_managementSearch true "分页获取证书管理列表"
// @Success 200 {object} response.Response{data=object,msg=string} "获取成功"
// @Router /certificate_management/getCertificate_managementPublic [get]
export const getCertificate_managementPublic = () => {
  return service({
    url: '/certificate_management/getCertificate_managementPublic',
    method: 'get',
  })
}
